package pro.shushi.pamirs.hr.api.model.eam;

import pro.shushi.pamirs.boot.base.ux.annotation.view.UxDetail;
import pro.shushi.pamirs.boot.base.ux.annotation.view.UxForm;
import pro.shushi.pamirs.hr.api.enums.eam.TensionTypeEnum;
import pro.shushi.pamirs.meta.annotation.Field;
import pro.shushi.pamirs.meta.annotation.Model;
import pro.shushi.pamirs.meta.base.IdModel;

import java.math.BigDecimal;

// 模型中UX开头的注解(UxForm/UxTable/UxDetail等)可以不用写，都可在设计器中进行可视化配置; 代码里面写这些注解是为了默认页面的交互
@UxForm(grid = 3)
@UxDetail(grid = 3)
@Model.model(EamUkDtTension.MODEL_MODEL)
@Model(displayName = "钢网保养张力明细表",labelFields = {"mmdCode","mmdName"})
@Model.Advanced(table="eam_uk_dt_tension",unique = {"orgCode,ukCode,tensionType"})
public class EamUkDtTension extends IdModel {

    public static final String MODEL_MODEL = "hr.simple.eamUkDtTension";

    @Field(displayName = "组织编码", invisible = true)
    private String orgCode;

    @Field(displayName = "保养单编码", invisible = true)
    public String ukCode;

    @Field.Enum(size='4')
    @Field(displayName = "测试位置",  required = true)
    public TensionTypeEnum tensionType;

    @Field.Money(M=20,D=6)
    @Field(displayName = "张力值",required = true,defaultValue = "0")
    public BigDecimal tensionValue;

    @Field.Text
    @Field(displayName = "备注")
    private String remark;


}
